#定义字典
my_dict1 = {"wjl":100,"hza":99,"wlm":80}

#定义一个空字典
my_dict2 = {}
my_dict3 = dict()

print(my_dict1)
print(my_dict2)
print(my_dict3)

#定义重复key
my_dict4 = {"wjl":100,"wjl":99,"wlm":80}
print(my_dict4)

#从字典中基于key获取value
my_dict1 = {"wjl":100,"hza":99,"wlm":80}
source = my_dict1["wjl"]
print(source)

#定义嵌套字典
stu_source_dict = {
    "wjl":{
        "chinese":100,
        "math":100,
        "english":100
    },
    "hza":{
      "chinese":100,
        "math":100,
        "english":100
    },
    "wlm":{
        "chinese":100,
        "math":100,
        "english":100
    }
}

#从嵌套字典获取语文信息
source = stu_source_dict["wjl"]["chinese"]
print(source)